<?php


namespace app\store\controller\data;


use app\store\controller\Controller;
use app\store\model\Coupon as CouponModel;

class Coupon extends Controller
{
    private $model;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = new CouponModel;
        $this->view->engine->layout(false);
    }

    /**
     * 优惠券列表
     */
    public function lists()
    {
        $list = $this->model->getList();
        return $this->fetch('list', compact(['list']));
    }
}